home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / wrb100a.zip / ZEXAMINE.BAT < prev   
DOS Batch File  |  1993-01-02  |  3KB  |  63 lines

  1. @ECHO OFF
  2. ECHO.
  3. ECHO.
  4. ECHO.
  5. ECHO.
  6. ECHO.
  7. ECHO.
  8. ECHO.
  9. ECHO ┌────────────────┬────────────────────────────────┐
  10. ECHO │  ZEXAMINE.BAT  │  Archive Viewing Support File  │
  11. ECHO ├──────────────┬─┴────────────────────────────────┤
  12. ECHO │  For WR-BBS  │  Designed for ZIP archive files  │
  13. ECHO └──────────────┴──────────────────────────────────┘
  14. ECHO.
  15. ECHO.
  16. REM
  17. REM      This batch file is designed for use in conjunction with the WR-BBS
  18. REM      (E)xamine archive feature found in the files menu.  It has been 
  19. REM      designed with the PkWare compression utilities in mind, but could  
  20. REM      be edited to suit other formats, such as .ARC, .LZH, .PAK, etc.
  21. REM
  22. REM      One parameter is passed to this batch file by WR-BBS ... the fully
  23. REM      pathed filename of the archive file to be examined.  It is then up
  24. REM      to this batch file to do the following:
  25. REM
  26. REM      1.  Execute the appropriate command to display the contents of
  27. REM          the specified archive file.  (With .ZIP files, that command
  28. REM          is PKUNZIP -v plus the filename).
  29. REM
  30. REM      2.  Redirect the output of that command into a text file named
  31. REM          ZEXAMINE.TXT.  (With most archive utilities, this is done by
  32. REM          using a redirect symbol, as in PKUNZIP -v %1 (greater than) 
  33. REM          ZEXAMINE.TXT).
  34. REM
  35. REM      3.  Terminate.  WR-BBS will then regain control, and display the
  36. REM          contents of ZEXAMINE.TXT.
  37. REM
  38. REM -------------------------------------------------------------------------
  39. ECHO ████████████████████████████████████████████████████████████████████████
  40. ECHO PARAMETER PASSED TO %0 = %1
  41. ECHO ████████████████████████████████████████████████████████████████████████
  42. REM
  43. REM
  44. REM      First, we will change to the WR-BBS working directory.  This can
  45. REM      be done by referring to the DOS environment variable "WR-BBS" with
  46. REM      a CHDIR or CD command.  If you have installed WR-BBS on a system 
  47. REM      with more than one hard drive, you may want to insert an additional
  48. REM      command to make the WR-BBS home drive current.
  49. REM
  50. CHDIR %WR-BBS%
  51. REM
  52. REM     Now, we issue the archive "view" command along with redirection to
  53. REM     the output file.  Note that the archive view utility must be either
  54. REM     in the WR-BBS home directory, or in a directory specified in the
  55. REM     DOS PATH.
  56. REM
  57. PKUNZIP -v %1 > %WR-BBS%\ZEXAMINE.TXT
  58. REM
  59. REM     Done.  Now, the batch file terminates, and WR-BBS regains control.
  60. REM     It will then display the output that was sent to ZEXAMINE.TXT
  61.  
  62.  
  63.